<?php
/**
* @author Eni
* @version 0.1.1
*/
class Model_Page extends Pidguin_Db_Table_Abstract
{
	/**
	 * Table name
	 *
	 * @var string
	 */
	protected $_name = 'pages';
	
	protected $_dependentTables = array('Model_AttachmentsForPages');
	
	protected $_referenceMap = array(
		'User' => array(
			'columns' => 'author_id',
			'refTableClass' => 'Model_User',
			'refColumns' => 'id',
			'onDelete' => self::CASCADE,
			'onUpdate' => self::CASCADE
		)
	);

	/**
	 * Instance of class
	 *
	 * @var Model_Page
	 */
	private static $_instance = null;

	/**
	 * Get instance of class
	 *
	 * @return Model_Page
	 */
	public static function getInstance()
	{
		if (self::$_instance === null) {
			self::$_instance = new self();
		}
		return self::$_instance;
	}
}